#include "comm.h"

int main()
{
	int fd = open(FILE_NAME, O_WRONLY);
	if(fd < 0)
	{
		perror("open");
		return 1;
	}

	string line;		
	while(true)
	{
		cout << "client Enter@ ";		
		getline(cin, line);

		write(fd, line.c_str(), line.size());
	}

	close(fd);
	return 0;
}
